<B:UIWS x:Class="WPFExcelReport.UWS03UBT"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:B="clr-namespace:WPFExcelReport;assembly=TWASTAMM"  
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"  
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                    xmlns:LS="clr-namespace:WPFExcelReport;assembly=TLIEFDAT" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                   x:Name="TV"
                    Loaded="Window_Loaded" 
      >
    <B:UIWS.Resources>
        <CollectionViewSource  x:Key="vwMaster"  />
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby10000  x:Key="dw"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:PNumConverter  x:Key="pnum"/> 
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:BoolToJNConverter x:Key="bjn"/>
    </B:UIWS.Resources>
    <Grid Name="MainGrid">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Row="0" Grid.Column="0">
            <WrapPanel >  
                <TextBlock  Grid.Row="0" Grid.Column="2" 
                            Text="{Binding Source={Localization:Translate Word=成品克重g/m:}}"
                            Margin="20,0,0,0" />
                <ex:NumericBox Maximum="999" Grid.Row="0" Grid.Column="3"
                               Margin="20,0,0,0" 
                                   Text="{Binding FGRLFD,ElementName=TV}" 
                                   IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}" 
                                   TabIndex="502"   
                                   MinWidth="40" Width="Auto" VerticalAlignment="Top" />
                <TextBlock  Grid.Row="0"  Grid.Column="4"
                            Margin="20,0,0,0"  Text="{Binding Source={Localization:Translate Word=克重g/sqm:}}"></TextBlock>
                <ex:NumericBox   Maximum="999"  Grid.Row="0" Grid.Column="5"  
                                    Text="{Binding FGRQM,ElementName=TV}" 
                               Margin="20,0,0,0" 
                                    IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}" 
                                     MinWidth="40" Width="Auto" />
                <TextBlock  Grid.Row="0"  Grid.Column="6" Margin="20,0,0,0"  Text="{Binding Source={Localization:Translate Word=成布匹长:}}" Visibility="Collapsed"></TextBlock>
                <ex:NumericBox   Maximum="9999"  Grid.Row="0" Grid.Column="7"  Visibility="Collapsed"
                                    Text="{Binding WAFSTDLG,ElementName=TV,Converter={StaticResource d1000}}"  
                                     Margin="20,0,0,0" 
                                    IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}" 
                                     MinWidth="40" Width="Auto" />
            </WrapPanel>
            <WrapPanel>
                <TextBlock  Grid.Row="1" Grid.Column="0" 
                            Margin="20,0,0,0" 
                            Text="{Binding Source={Localization:Translate Word=坯布克重g/m:}}"></TextBlock>
                <ex:NumericBox Maximum="999" Grid.Row="1" Grid.Column="1"  
                                   Text="{Binding WARGRLFD}" 
                                   IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}" 
                                   TabIndex="502"   
                               Margin="20,0,0,0" 
                                   MinWidth="40" Width="Auto" VerticalAlignment="Top" />
                <TextBlock  Grid.Row="1"  Visibility="Collapsed" Grid.Column="3" Margin="20,0,0,0"  Text="{Binding Source={Localization:Translate Word=克重g/sqm:}}"></TextBlock>
                <ex:NumericBox   Maximum="999"  Grid.Row="1" Grid.Column="4"   
                                    Text="{Binding WARGRQM}" 
                               Margin="20,0,0,0" 
                                    IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}" 
                                     MinWidth="40" Width="Auto" />
                <TextBlock  Grid.Row="1"  Grid.Column="5" Margin="20,0,0,0"  Text="{Binding Source={Localization:Translate Word=整理缩率:}}"></TextBlock>
                <ex:NumericBox   Maximum="9999"  Grid.Row="1" Grid.Column="6"  
                                    Text="{Binding WALAEAEND,Converter={StaticResource d1000}}"  
                                     Margin="20,0,0,0" 
                                    IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}" 
                                     MinWidth="40" Width="Auto" />
             </WrapPanel>
        </StackPanel>
        <Grid Grid.Row="1"  Grid.Column="0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Grid Grid.Column="0" Grid.Row="0" Grid.RowSpan="6" Visibility="Collapsed">
                <TextBlock Text="{Binding Source={Localization:Translate Word=织造工艺:}}"/>
            </Grid>
            <Grid Grid.Row="0" Grid.Column="1"  Visibility="Collapsed">
                <TextBlock Text="{Binding Source={Localization:Translate Word=项目}}"/>
            </Grid>
            <Grid Grid.Row="1" Grid.Column="1" Visibility="Collapsed">
                <WrapPanel>
                    <TextBlock Text="{Binding Source={Localization:Translate Word=密度:}}"/>

                    <SD:TSSD0181  Margin="0,5,0,0" Grid.Row="1" Grid.Column="2" Name="c181"   
                                  LMS="TCM;"
                                  KEY="{Binding DENUM,ElementName=TV}" 
                                  EXAUF="{Binding DENUM,ElementName=TV}" 
                                  IsEdit="{Binding IsEdit,ElementName=TV}" />
                </WrapPanel>
            </Grid>
            <Grid Grid.Row="2" Grid.Column="1" Visibility="Collapsed">
                <TextBlock Text="{Binding Source={Localization:Translate Word=10CM}}"/>
            </Grid>
            <Grid Grid.Row="3" Grid.Column="1" Visibility="Collapsed" >
                <TextBlock Text="{Binding Source={Localization:Translate Word=总经}}"/>
            </Grid>
            <Grid Grid.Row="4" Grid.Column="1"  Visibility="Collapsed">
                <TextBlock Text="{Binding Source={Localization:Translate Word=边纱排列}}"/>
            </Grid>
            <Grid Grid.Row="0" Grid.RowSpan="3" Grid.Column="3"  >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Text="{Binding Source={Localization:Translate Word=经密}}" HorizontalAlignment="Center"/>
                <TextBlock Grid.Row="1" Grid.Column="0" Text="{Binding Source={Localization:Translate Word=机上}}"/>
                <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Source={Localization:Translate Word=坯布}}"/>
                <TextBlock Grid.Row="1" Grid.Column="2" Text="{Binding Source={Localization:Translate Word=成品}}"/>
                <ex:NumericBox Grid.Row="2" Grid.Column="0" Text="{Binding WASCHLIAUF,Converter={StaticResource ResourceKey=d100}}" IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
                <ex:NumericBox Grid.Row="2" Grid.Column="1" Text="{Binding WARFDDIK,Converter={StaticResource ResourceKey=d100}}" IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
                <ex:NumericBox Grid.Row="2" Grid.Column="2" Text="{Binding FFDDIK,Converter={StaticResource ResourceKey=d100},ElementName=TV}" IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
            </Grid>
            <Grid Grid.Row="0" Grid.RowSpan="3" Grid.Column="4"  >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Text="{Binding Source={Localization:Translate Word=纬密}}" HorizontalAlignment="Center"/>
                <TextBlock Grid.Row="1" Grid.Column="0" Text="{Binding Source={Localization:Translate Word=机上}}"/>
                <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Source={Localization:Translate Word=坯布}}"/>
                <TextBlock Grid.Row="1" Grid.Column="2" Text="{Binding Source={Localization:Translate Word=成品}}"/>
                <ex:NumericBox Grid.Row="2" Grid.Column="0" Text="{Binding GFDISM,Converter={StaticResource ResourceKey=d100},ElementName=TV}" 
                               IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
                <ex:NumericBox Grid.Row="2" Grid.Column="1" Text="{Binding WARFDDIS,Converter={StaticResource ResourceKey=d100}}" IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
                <ex:NumericBox Grid.Row="2" Grid.Column="2" Text="{Binding FFDDIS,Converter={StaticResource ResourceKey=d100},ElementName=TV}" IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
            </Grid>
            <Grid Grid.Row="0" Grid.RowSpan="3" Grid.Column="5"   >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Text="{Binding Source={Localization:Translate Word=幅宽CM}}" HorizontalAlignment="Center"/>
                <TextBlock Grid.Row="1" Grid.Column="0" Text="{Binding Source={Localization:Translate Word=机上}}"/>
                <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Source={Localization:Translate Word=坯布}}"/>
                <TextBlock Grid.Row="1" Grid.Column="2" Text="{Binding Source={Localization:Translate Word=成品}}"/>
                <ex:NumericBox Grid.Row="2" Grid.Column="0" Text="{Binding RBRTOL,Converter={StaticResource ResourceKey=d10},ElementName=TV}" 
                               IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
                <ex:NumericBox Grid.Row="2" Grid.Column="1" Text="{Binding RWBRT,Converter={StaticResource ResourceKey=d10},ElementName=TV}" 
                               IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
                <ex:NumericBox Grid.Row="2" Grid.Column="2" Text="{Binding FBRTU,Converter={StaticResource ResourceKey=d10},ElementName=TV}" 
                               IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
            </Grid>

        </Grid>
    </Grid>
</B:UIWS>
